package com.service.khqy;

import com.bpms.common.CommonUtil;
import com.bpms.common.JdbcWorker;
import com.bpms.common.VO;
import com.bpms.esb.IService;

public class Deleteaccountno implements IService {

	public VO exec(VO arg0) {
		JdbcWorker j=null;
		VO vo=new VO();
		String type=arg0.getAttr("type");
		try{
			j=new JdbcWorker();
			
			VO v=new VO();
			v.setAttr("AVAILABLE","3");
			
			VO k = new VO();
			k.voType = "ACCOUNTNO";
			k.keyString = "ACCOUNTID";
			k.keyString = "ACCOUNT";
			k.setAttr("ACCOUNTID",arg0.getAttr("ACCOUNTID"));
			k.setAttr("ACCOUNT",arg0.getAttr("ACCOUNT"));
			
			j.update(v, k);
			
			vo.setAttr("result", "1");
			vo.setAttr("msg", "删除簽約帐号成功");
		}catch (Exception e){
			CommonUtil.debug("Getcontract exception",e);
			vo.setAttr("result", "9999");
			vo.setAttr("msg", "获得签约错误");
		}
		return vo;
	}

}
